package com.qeegoo.b2bautozityp.moudle.login.view;

import com.qeegoo.b2bautozityp.R;
import com.qeegoo.b2bautozityp.databinding.ActivityRegisterBinding;
import com.qeegoo.b2bautozityp.injector.component.DaggerRegisterComponent;
import com.qeegoo.b2bautozityp.moudle.base.AppBar;
import com.qeegoo.b2bautozityp.moudle.base.BaseActivity;
import com.qeegoo.b2bautozityp.moudle.login.viewmodel.RegisterViewModel;

import javax.inject.Inject;

/**
 * Created by lining on 2017/9/20.
 */

public class RegisterActivity extends BaseActivity<ActivityRegisterBinding> {

    @Inject
    RegisterViewModel mViewModel;

    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_register;
    }

    @Override
    protected void initInjector() {
        DaggerRegisterComponent.builder().appComponent(getAppComponent()).build().inject(this);
    }

    @Override
    protected void initViews() {
        initToolBar(mBinding.layoutToolbar, new AppBar("注册供应商", true));
        mBinding.setViewModel(mViewModel);
    }
}
